import 'package:kepu/generated/json/base/json_field.dart';
import 'package:kepu/generated/json/plant_type_entity.g.dart';
import 'dart:convert';
export 'package:kepu/generated/json/plant_type_entity.g.dart';

@JsonSerializable()
class PlantTypeEntity {
	late int code;
	late String msg;
	late List<PlantTypeData> data;

	PlantTypeEntity();

	factory PlantTypeEntity.fromJson(Map<String, dynamic> json) => $PlantTypeEntityFromJson(json);

	Map<String, dynamic> toJson() => $PlantTypeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PlantTypeData {
	late int planttypeId;
	late String planttypeContent;

	PlantTypeData();

	factory PlantTypeData.fromJson(Map<String, dynamic> json) => $PlantTypeDataFromJson(json);

	Map<String, dynamic> toJson() => $PlantTypeDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}